import { stringify } from 'querystring';

let n: string = '我是一个好学生';
n = '8888';
let t: boolean = true;
const b: string = '666666';
let u: number = 7;
let list: number[] = [1, 2, 3, 4, 5, 6];
let arr: Array<string> = ['abc', 'bc', 'c'];
let k: any[] = [1, 'Tom', false];
let un: void = undefined;
const js: object = { 'why': 'WPS' };
const ks: object = { 'st': 4, 't': 4 };
const gg: object = { 'a': 6, 'b': '我是最棒的', 'c': 'true' };


interface LabelledValue {
	data: string;
}

function priontLabel(Obj: LabelledValue, y?: LabelledValue): LabelledValue {
	console.log(Obj.data);
	return Obj;
}

let myf = { size: 10, data: "xiaomingtongxue" };
priontLabel(myf);



interface Imy_function1 {
	a: string;
}
interface Imy_function2 {
	b: number;
	c: Imy_function1;
	d: { a: string };
}
function my_function(x: Imy_function1, y: Imy_function2): boolean {
	return true;
}
my_function({ a: '小明' }, { b: 2, c: { a: '小白', d: { a: '小萧' } });